package factory

import "smoot-code/service/data"

func InitData(t string) (data.Data, error) {
	var restError error = nil
	switch t {
	case "local":
		localData, err := data.NewLocalData()
		restError = err
		return localData, nil
	}
	if restError != nil {
		return nil, restError
	}
	return nil, restError
}
